<%def name="make_breadcrumbs(breadcrumb_list)">
<% total_url = '' %>
<% total_elems = len(breadcrumb_list) %>

<ul class="breadcrumbs">
%for index, (url, name) in enumerate(breadcrumb_list):
	<% total_url += '/' + url %>
	% if index == 0:
		<li class="first">
	% else:
		<li>&gt;&gt;
	% endif

	% if index == total_elems - 1:
		${name}
	% else:
		<a href="${total_url}">${name}</a>
	% endif
	</li>
%endfor
</ul>
</%def>
